const {Router} = require("express");
const router = Router();
const pcRouter = require("./routes/pcRoutes");
const commonRouter = require("./routes/commonRoutes");
const {verifyUseToken, timeoutMiddleware} = require("../middleware/index");

// 请求超时中间件
router.use(timeoutMiddleware())

//pc端请求处理中间件
router.use("/pc", verifyUseToken, pcRouter);

// 公共中间件
router.use("/common", commonRouter);

module.exports = router;
